package cn.edu.tsinghua.training.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class Business {

	@Autowired
	@Qualifier("USBWriter")
	private DeviceWriter deviceWriter;
	
	public void save() {
		deviceWriter.saveToDevice();
	}
	
}
